export const mergeSimilarItems = (arrs, targeKey, countKey) => {
  let rs = [...arrs];
  for (let i = rs.length - 1; i >= 0; i--) {
    for (let j = i - 1; j >= 0; j--) {
      if (rs[i][targeKey] === rs[j][targeKey]) {
        rs[i][countKey] = rs[i][countKey] + rs[j][countKey]
        rs.splice(j, 1)
      }
    }
  }
  return rs;
}